import Mock from 'mockjs'

Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/auth/load`, 'get', () => {
  let result = {}
  result.code = 0
  result.data = [{
    router: 'root',
    children: [
      // {
      //   router: 'workplace',
      //   // children: ['workplace', 'analysis'],
      // },
      {
        router: 'bigdata',
        children:[
          'userSituationDetail',
        ]
      },
      {
        router: 'broadcast',
        children:[
          'program',
          'material',
          'device',
          'deviceInfo',
          'group',
          'programInfo',
          'materialInfo'
        ]
      },
      {
        router: 'check',
        children:[
          'materialCheck',
        ]
      },
      {
        router: 'system',
        children:['config','dictionary','role','user','organization','resources']
      },
      // {
      //   router: 'test',
      // },
      
    ]
  }]
  return result
})
